/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.transfer.annotation;

import org.apache.myfaces.extensions.validator.core.validation.parameter.ViolationSeverity;
import org.apache.myfaces.extensions.validator.core.validation.parameter.ValidationParameter;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.*;

/**
 *
 * @author bkummel
 */
@Target({METHOD, FIELD})
@Retention(RUNTIME)
public @interface LessThan {
    String[] value();

    String validationErrorMsgKey() default "duplicated_content_required";

    Class<? extends ValidationParameter>[] parameters() default ViolationSeverity.Error.class;

    boolean allowEqual() default false;
}